let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n173,
                    i =
                    (this && this.__extends) ||
                    ((_n173 = function n(t, e) {
                            return (_n173 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n173(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        });
                Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.TimeFrame = void 0);
                var r = t('AbsObject'),
                    a = t('TimeFrameItem'),
                    s = t('TimeMrg'),
                    c = (function(t) {
                        function e() {
                            var e = t.call(this) || this;
                            return (e._frames = []), (e._count = 0), (e._runTime = 0), e;
                        }
                        return (
                            i(e, t),
                            Object.defineProperty(e.prototype, 'time', {
                                get: function get() {
                                    return this._runTime;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            (e.prototype.start = function() {
                                (this._sTime = s.TimeMrg.serverTime), (this._running = !0);
                            }),
                            (e.prototype.stop = function() {
                                (this._running = !1), (this._runTime = 0);
                            }),
                            (e.prototype.update = function() {
                                if (!this.isDestroy && this._running && this._count > 0) {
                                    this._runTime = 0.001 * (s.TimeMrg.serverTime - this._sTime);
                                    var t = this._frames[0];
                                    this._runTime >= t.time &&
                                        (t.execute(), this._frames.shift(), this._count--);
                                }
                            }),
                            (e.prototype.addEvent = function(t, e, o, n, i) {
                                if (
                                    (void 0 === i && (i = null),
                                        !this.isDestroy && this._runTime <= t)
                                ) {
                                    var r = new a.TimeFrameItem();
                                    r.init(t, e, o, n, i), this._frames.push(r), this._count++;
                                }
                            }),
                            (e.prototype.reset = function() {
                                if (
                                    ((this._running = !1), (this._runTime = 0), this._count > 0)
                                ) {
                                    for (var t = 0; t < this._frames.length; t++) {
                                        this._frames[t].destroy();
                                    }
                                    this._frames.splice(0, this._count);
                                }
                                this._count = 0;
                            }),
                            (e.prototype.onDestroy = function() {
                                t.prototype.onDestroy.call(this);
                                for (var e = 0; e < this._frames.length; e++) {
                                    this._frames[e].destroy();
                                }
                                (this._frames = null), (this._count = 0);
                            }),
                            e
                        );
                    })(r.AbsObject);
                (o.TimeFrame = c), console.log("end");
            module.exports =  e.exports;